home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 6 / CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso / imagine / extras / objects / animflare / lensflare.doc < prev    next >
Text File  |  1994-03-20  |  2KB  |  73 lines

  1. I   have   just   downloaded   the   lens   flare   object  from  Aminet
  2. (gfx/3dobj/Flare.lha).   This object have been created by Cryto with the
  3. technics  given  in the Amazing Computing article (Feb94).  It looks ok,
  4. but  it  is  not  the  lens  flare  I  was  expecting,  so  I  made some
  5. modifications to make is useable in an animation.
  6.  
  7. In  a lens flare, the rings are following a line that point to the light
  8. source  and  pass  thru the center of the screen (just watch a Gun's and
  9. Roses  video,  there  are  more  of thoses artifacts than in a LightWave
  10. animation!).
  11.  
  12. The  first thing I made was deleting the two rings in the object.  Then,
  13. I  created  an object that consist of disks of different sizes.  Each of
  14. those  disks  have a radial texture so they are fully transparent at the
  15. center  and semi-transparent on the edge, with a pale blue-purple color.
  16. Those disks are then placed on a line that follow the Y axis:
  17.  
  18. Top View:
  19.  
  20.  
  21.  
  22.      ----------------------
  23.  
  24.               ----
  25.  
  26.         ----------------
  27.  
  28.                y
  29.                |
  30.                +-x             <---- parent Axis
  31.       ---------------------
  32.  
  33.  
  34.             --------
  35.  
  36.  
  37.         ----------------
  38. Y
  39. |
  40. +- X
  41.  
  42. Note:  All disks X and Z cordinates are identical.
  43.  
  44. Now,  I  added  an  axis in the center and grouped all the disks to that
  45. axis.   For  the  Lightsource,  I added an axis far in front of the star
  46. object and made it the parent with it's Y axis pointing in the direction
  47. of the star.
  48.  
  49. In the anim, the star object is placed in all frame in the same position
  50. as  the  camera with tracking on the light source.  The camera track the
  51. disks object and the disk object track the light source.  Make sure that
  52. the star and rings are in front of every other object in all frames.
  53.  
  54. Et  voila:  Animated lens flare.  The light source may move normaly.  If
  55. the  camera  move,  the  rings  object  must  always be kept at the same
  56. distance  from the camera.  To change alignement of the camera, you have
  57. to move the rings object.
  58.  
  59. I  will upload some images (jpeg) from an animation with the staging and
  60. all the objects to aminet soon.  Watch for AnimFlare.lha.  The animation
  61. show  a  sunset  from space where the rings fade in and out as the light
  62. come closer to the center of the screen and the star disapear behind the
  63. planet.   You  will  also  get,  as a free gift, an object of the planet
  64. Mars.
  65.  
  66.  
  67.  
  68. Patrick Sauvageau 
  69. sauvp00@dmi.usherb.ca
  70.  
  71. (Please forgive my bad english; it's not my native language)
  72.  
  73.